export async function GetAll(data: any): Promise<any> {
  let result: any = null;
  await (window as any).DotNet.invokeMethodAsync("maui-vue-demo", "GetFoo").then((data: any) => {
    console.log(`DotNet method return the value: ${data}`);
    result = data;
  });
  return result;
}

export async function AddData(data: any): Promise<any> {
  let result = null;
  await (window as any).DotNet.invokeMethodAsync("maui-vue-demo", "Add", data).then((data: any) => {
    console.log(`DotNet method return the value: ${data}`);
    result = data;
  });

  return result;
}
